﻿<html>
<head>
    <link rel="stylesheet" href="style.css" type="text/css" />
    <link rel="stylesheet" href="Styles/style.css" type="text/css" />
    <script src="styles/js.js" type="text/javascript"></script>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body>
    <div class="column">
    <form action="Admin_add.aspx?T=Collect" method="post" name="form1">
        <table cellspacing="0" cellpadding="0" align="center" border="0" id="MyDataGrid"
            style="border-width: 0px; width: 100%; border-collapse: collapse;">
            <tr class="summary-title" align="center" style="height: 25px;">
                <td width="100">
                    操作
                </td>
                <td align="left" style="padding-left:20px;">
                    标题
                </td>
                <td>关键字</td>
                <td width="100">
                    提问时间
                </td>
            </tr>
            {fenye:B_api_data^18^A_id desc^}
            <tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';"
                style="height: 25px;" align="center">
                <td>
                   入库： <input type="checkbox" value="{A_id}" name="Cid" id="Cid" />&nbsp
                    <a href="admin_urls.aspx?template=template/t_admin_api_info.html&id={A_id}">详细</a> <a href="admin_del.aspx?T=api&s_id={A_id}">删除</a>
                </td>
                <td style="text-align:left; padding-left:20px;">
                    {A_title}
                </td>
                <td>{A_key}</td>
                <td>
                    {A_addtime}
                </td>
            </tr>
            <tr><td colspan="8" style="height:1px; background-color:#AAE3FF;"></td></tr>
            {/fenye}
        </table>
        <div style="text-align: left; height:35px; line-height:35px; padding-left:15px;">
	<input type="hidden" name="target" id="target" value="" />
         全选&nbsp;<input type="checkbox" name="chkAll" id="chkAll" onclick="CheckAll(this.form);" value="checkbox" />&nbsp;指定会员名称：<input type="text" name="uid" /> &nbsp;&nbsp;选择分类： <select name="classid" id="classid">
           
            {liebiao2:B_askClass^0^a_classid asc^a_classLevel=1}
                <optgroup label="{<a_className>}">
                    {liebiao:B_askClass^0^a_classid asc^a_classLevel=2 and a_parentid={<a_classid>}}
                        <option value="{a_classid}">&nbsp;&nbsp;——{a_className}</option>
                    {/liebiao}{/liebiao2}
                </optgroup>
            </select>&nbsp;&nbsp;<input type="button" value="点击入库" onclick="Submit('add')" />
		<input type="button" value="删除" onclick="Submit('del')" />
               <div style="text-align: center;height:30px; line-height:30px;">
            {$page}</div>
    </form>
        <script type="text/javascript">
            function Submit(type) {
                if ("del" == type) {
                    document.getElementById("target").value = "del";
                }
                else {
                    document.getElementById("target").value = "add";
                }
                document.form1.submit();
            }
        </script>
    </div>
</body>
</html>
